import { useUserStore } from "@/hooks/usePinia/index"
import { beforeOrAfterCallBack } from "@/utils/index"

const useUser = useUserStore()

export const userMenu = [
  {
    label: "个人中心",
    handle: (beforeCB: Function | null, afterCB: Function | null) => {
      beforeOrAfterCallBack(beforeCB, () => {

      }, afterCB)
    },
  },
  {
    label: "退出登录",
    handle: (beforeCB: Function | null, afterCB: Function | null) => {
      beforeOrAfterCallBack(beforeCB, () => {
        useUser.outLogin()
      }, afterCB)
    },
  },
];

export const BaseHeadPortrait =
  "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png";


  export const changeMenuType = () => {

  }